package main

import (
	"fmt"
	"time"
)

func main() {
	a := 10

	done := make(chan struct{}, 1)
	timeout := time.Second * 1
	close(done)
	switch a {
	case 10:
		fmt.Println(10)
	case 20:
		fmt.Println(20)
	}

	select {
	case <-done:
		fmt.Println("done")
	case <-time.After(timeout):
		fmt.Println("timeout")
	}
	fmt.Println(11111)
}
